package com.online.onlineshop.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.ToString;
import org.springframework.lang.Nullable;

import java.io.Serializable;

/*
 * 用户实体类
 * */
@Data
@ToString
public class User extends BaseFields implements Serializable {
    @TableId(value = "uid")
    private int uid; //用户id
    private String username; //用户名
    private String password;// 用户密码
    @Nullable
    private int userType; //用户类型
    @Nullable
    private String phone;//用户电话
    @Nullable
    private String email;//用户邮箱
    @Nullable
    private int gender;//用户性别
    @Nullable
    private String portrait;//用户头像
    private int isDeleted; //是否删除
}
